#include "IBean.h"
#include "IPlugin.h"
#include "IServlet.h"
#include "BeanManager.h"

int main(int argc,char *argv[])
{
    if (argc != 2)
    {
        printf("%s [beans.xml]",argv[0]);
        return -1;
    }
    BeanFactoryManager::getInstance().init();
    BeanManager::getInstance().load(argv[1]);
    BeanManager::getInstance().start();
    BeanManager::getInstance().unload();
    return 0;
}
